package main

import (
	"fmt"
	"os"
	. "pkg.deepin.io/dde/api/thumbnails"
)

func main() {
	if len(os.Args) != 2 {
		fmt.Printf("Usage: %s <file>\n", os.Args[1])
		return
	}

	dest, err := GenThumbnail(os.Args[1], 128)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println("Thumbnail:", dest)
}
